import axios from 'axios'
//根路径
const baseURL = 'http://www.lovegf.cn:8899'
axios.defaults.baseURL=baseURL
//获取轮播图数据
export const getlunbo = params =>{
    return axios.get('/api/getlunbo',params).then(res => res.data)
}
//获取新闻资讯
export const getNewsList = params =>{
    return axios.get('/api/getnewslist',params).then(res => res.data)
}
//商品购买
export const goodsList = params =>{
    return axios.get(`/api/getgoods?pageindex=${params}`).then(res => res.data)
}